Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix(input): apply directives to only suitable inputs #6243

Closed
wants to merge 1 commit into from

Conversation

twhitbeck
Copy link
Contributor

No description provided.

@mary-poppins
Copy link

Thanks for the PR! Please check the items below to help us merge this faster. See the contributing docs for more information.

  • Uses the issue template (#6243)

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

@@ -90,6 +90,7 @@ var inputType = {
</doc:example>
*/
'text': textInputType,
'textarea': textInputType,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What? Afaik there is no input[type=textarea], only the textarea element.

We want to use textInputType for textarea elements, so...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, but at least in chrome (the only browser I tested with), the "type" property of a <textarea> is "textarea". This directive is applied to <textarea> elements as well as <input> elements, so this was added to catch those.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah I see. I'm not totally sure if that will work for IE, but I guess we'll see. (In review I usually scan the diff from top to bottom, hadn't noticed you were using the property rather than attribute yet ;)

@twhitbeck
Copy link
Contributor Author

I'm not really sure how to recover this PR, since I basically want to change the proposed change altogether. I'm going to create another branch and submit a PR from that one.

@twhitbeck twhitbeck closed this Feb 13, 2014
@benlesh
Copy link
Contributor

benlesh commented Feb 13, 2014

@twhitbeck if you want to make changes to an existing PR, you can simply make them and push your changes up to GitHub. At the point any PR is going to be accepted, though, you'll have to "squash" your commits into a single commit with a properly formatted commit message.

All of that said, what problem is this PR attempting to solve? Not being snarky, I just didn't glean what the problem is from the conversation or the code.

@caitp
Copy link
Contributor

caitp commented Feb 13, 2014

@Blesh it's (one particular) attempt to solve #6231, although it currently does a few extra things. All in all, it's a legitimate problem that should be fixed.

@twhitbeck
Copy link
Contributor Author

Ah, I didn't see that issue. That's precisely what's going on. I want to write my own <input type="file"> directive, and I don't want the textInput directive applied to it. Simply applying noop to 'file' types should suffice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants